* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: radial-gradient(circle at 20% 30%, rgba(255,0,0,.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,0,0,.06), transparent 40%),
    #020617;
  color: #fff;
  overflow-x: hidden;
}


header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 18px 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15,18,24,0.85);
  transition: 0.4s;
  z-index: 1000;
}

header.scrolled {
  background: #0f1218;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.logo {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 1px;
}

nav a {
  margin-left: 22px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #ff3b3b;
  transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.infografis-section{
  padding:120px 80px;
}

h1{
  font-size:40px;
  animation: Slide 0.5s ease-out;
}

.paragraf{
  animation: Slide_bawah 0.7s ease-out 0.5s backwards;
  
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:30px;
}


.info-card h3{
  z-index: 1;
}
.info-card{
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color:#fff;
  padding:30px;
  text-align:center;
  transition:.4s;
  border-radius:12px;
  border:2px solid #ff3b3b;
  overflow:hidden;
  position:relative;
  min-height:380px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  margin-top: 135px;
  animation: FadeinCard 1s ease-out 0.8s backwards;
}

.info-card:nth-child(1){ animation-delay: .2s; }
.info-card:nth-child(2){ animation-delay: .4s; }
.info-card:nth-child(3){ animation-delay: .6s; }

.info-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:80px;
  background:#ff3b3b;
}

.info-card:hover{
  transform:translateY(-6px);
  border-color:#ff3b3b;
  box-shadow:0 20px 40px rgba(255,59,59,.3);
}

.thumb{
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  margin-top: 50px;
}

.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}


.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
}

.modal img{
  max-width:85%;
  max-height:85%;
  border-radius:12px;
  box-shadow:0 0 30px rgba(255,255,255,.2);
}

.close{
  position:absolute;
  top:30px;
  right:40px;
  font-size:40px;
  cursor:pointer;
}

footer{
  text-align:center;
  padding:30px;
  background:#0b0d12;
  border-top:1px solid rgba(255,255,255,0.1);
  font-size:14px;
  color:#aaa;
}


@keyframes Slide {
  from {
    opacity: 0;
    transform: translateX(-250px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes Slide_bawah {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes FadeinCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}